package com.young.design.pattern.factory.abstractfactory;

//抽象产品：植物类
interface Plant {
    public void grow();
}
//具体产品：水果类
class Fruitage implements Plant {

    public void grow() {
        System.out.println("水果长大了");
    }
}


//具体产品：蔬菜类
class Vegetables implements Plant {

    public void grow() {
        System.out.println("蔬菜长大了");
    }
}
